﻿@model Web.Models.TagDto

@{
    ViewBag.Title = "Details of a tag";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details of @Html.ValueFor(m => m.Name)</h2>
<br />
<fieldset>
@Html.LabelFor(m => m.Id)
@Html.ValueFor(m => m.Id)

@Html.LabelFor(m => m.Name)
@Html.ValueFor(m => m.Name)

            @Html.Label("Parent Tag")
    <p>@(ViewBag.Parent ?? "No parent")</p>

@Html.LabelFor(m => m.Unit)
@Html.ValueFor(m => m.Unit)

@Html.LabelFor(m => m.Guid)
@Html.ValueFor(m => m.Guid)
    
</fieldset>

<br/>

@Html.ActionLink("Delete this tag", "Delete", "Tag", new { id = Model.Id}, null)